package com.medical.blood.controller;
import com.medical.blood.annotation.LogOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class TestController {

    @GetMapping("/login")
    @LogOperation(operationType = "login", description = "用户登录操作")
    public String login() {
        return "login success";
    }

    @GetMapping("/appointment")
    @LogOperation(operationType = "appointment", description = "检测预约操作")
    public String appointment() {
        return "appointment success";
    }
}
